package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreDeliveryPackageDetailEntity;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 仓库发货包裹明细 保存对象
 *
 * @author Gzhao 2021-03-06
 */
@Data
@ApiModel("仓库发货包裹明细-保存对象")
public class StoreDeliveryPackageDetailSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品编码")
    private String sku;

    @ApiModelProperty(value = "商品数量")
    private Integer skuNum;

    @ApiModelProperty(value = "出库仓库编码")
    private String storeCode;

    public StoreDeliveryPackageDetailEntity convertEntity() {
        StoreDeliveryPackageDetailEntity target = new StoreDeliveryPackageDetailEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
